﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter11.Code01.Code06.Example03
{
    public class Demo
    {
        public static void Begin()
        {
            Primes primesFrom2To1000 = new Primes(2, 1000);
            foreach (long i in primesFrom2To1000)
            {
                Console.Write("{0} ", i);
            }
            Console.ReadLine();
        }
    }
}
